#ifndef __MODULE_RTP_UTILS_H_
#define __MODULE_RTP_UTILS_H_
#include <api/array_view.h>
namespace xrtc
{

    enum class RtpPacketType
    {

        kRtp,
        kRtcp,
        kUnknown,
    };
    RtpPacketType InferRtpPacketType(rtc::ArrayView<const char> packet);
    uint16_t ParseRtpSequenceNumber(rtc::ArrayView<const uint8_t>packet);
    uint32_t ParseRtpSsrc(rtc::ArrayView<const uint8_t>packet);
    bool GetRtcpType(const void* data,size_t len,int*type);


} // namespace xrtc

#endif